#include <QtCore/QString>
#include <QtTest/QtTest>
#include <QtCore/QCoreApplication>
#include <../../sameclass.h>

class SameclassTest : public QObject
{
    Q_OBJECT
    
public:
    SameclassTest();
    
private Q_SLOTS:
    void initTestCase();
    void cleanupTestCase();
    void testCase1();
    void testCase1_data();
};

SameclassTest::SameclassTest()
{
}

void SameclassTest::initTestCase()
{
}

void SameclassTest::cleanupTestCase()
{
}

void SameclassTest::testCase1()
{
    SameClass *scTest = new SameClass(this);
    scTest->setName(new QString("First"));
    QVERIFY2(scTest->Name() == QString("First"), "Failure");
}

void SameclassTest::testCase1_data()
{
    QTest::addColumn<QString>("data");
    QTest::newRow("0") << QString();
}

QTEST_MAIN(SameclassTest)

#include "tst_sameclasstest.moc"
